/**
 * 
 */
package com.ubo.visu.painter.association;

import javafx.scene.Group;
import javafx.scene.Node;

import com.ubo.visu.painter.node.INodePainter;

/**
 * @author saludegu
 * 
 */
public abstract class AAssociationPainter implements IAssociationPainter {

	/**
	 * Group contenant le dessin.
	 */
	protected Group mContainer;

	/**
	 * Painter source.
	 */
	protected INodePainter mPainterFrom;

	/**
	 * Painter cible.
	 */
	protected INodePainter mPainterTo;

	/**
	 * 
	 * Constructor
	 * 
	 * @param painterTo
	 * @param painterFrom
	 * 
	 */
	public AAssociationPainter(INodePainter painterFrom, INodePainter painterTo) {
		mContainer = new Group();
		mPainterFrom = painterFrom;
		mPainterTo = painterTo;
	}

	/**
	 * 
	 * @see com.ubo.visu.painter.node.INodePainter#getContent()
	 */
	public Node getContent() {
		return mContainer;
	}
}
